#import "dfhgwhruebvhrheyvictimminimalViewController.h"
@interface dfhgwhruebvhrheyvictimminimalViewController ()
@end
@implementation dfhgwhruebvhrheyvictimminimalViewController {
	UILabel *displayLabel;
	UILabel *subLabel;
	UIImageView *icon;
	UIButton *submitBtn;
	void(^call)(void);
}
- (void)viewDidLoad {
    [super viewDidLoad];
	[self loadUI];
}
- (void)loadUI {
	[self configBackIcon:@"dhgfywegwygeydwcurvereciprocal"];
	self.navigationItem.title = @"Face Photo";
	self.navigationStyle = dhgfywegwygeydwreciprocaltransport;
	displayLabel = [[UILabel alloc] init];
	displayLabel.font = [UIFont medium:30];
	displayLabel.text = @"Face  Authentication";
	displayLabel.textAlignment = NSTextAlignmentCenter;
	displayLabel.textColor = second_color.dhgfywegwygeydwlearneddesignate;
	[self.view addSubview:displayLabel];
	subLabel = [[UILabel alloc] init];
	subLabel.textAlignment = NSTextAlignmentCenter;
	subLabel.font = [UIFont medium:15];
	subLabel.textColor = [UIColor whiteColor];
	subLabel.numberOfLines = 0;
	subLabel.text = @"Face  in the frame please. Make sure your face is clear.";
	[self.view addSubview:subLabel];
	icon = [[UIImageView alloc] init];
	icon.image = [UIImage imageNamed:@"home_face_authentication"];
	[self.view addSubview:icon];
	submitBtn = [UIButton buttonWithType:UIButtonTypeCustom];
	submitBtn.backgroundColor = second_color.dhgfywegwygeydwlearneddesignate;
	[submitBtn setTitle:@"Submit" forState:UIControlStateNormal];
	submitBtn.titleLabel.font = [UIFont semiBold:18];
	submitBtn.layer.cornerRadius = 10;
	[submitBtn setTitleColor:primary_color.dhgfywegwygeydwlearneddesignate forState:UIControlStateNormal];
	[submitBtn addTarget:self action:@selector(submitBtnAction) forControlEvents:UIControlEventTouchUpInside];
	[self.view addSubview:submitBtn];
}
- (void)prepareFinish:(void (^)(void))finish {
	call = finish;
}
- (void)submitBtnAction {
	if(call) {
		call();
	}
}
- (void)viewDidLayoutSubviews {
	[super viewDidLayoutSubviews];
	[displayLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(50);
		make.centerX.equalTo(self.view);
		make.height.mas_equalTo(43);
	}];
	[subLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(displayLabel.mas_bottom).offset(20);
		make.left.equalTo(self.view).offset(57);
		make.centerX.equalTo(self.view);
		make.height.mas_equalTo(42);
	}];
	[icon mas_makeConstraints:^(MASConstraintMaker *make) {
		make.size.mas_equalTo(CGSizeMake(218, 218));
		make.centerX.equalTo(self.view);
		make.top.equalTo(subLabel.mas_bottom).offset(43);
	}];
	[submitBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(icon.mas_bottom).offset(80);
		make.left.equalTo(self.view).offset(13);
		make.centerX.equalTo(self.view);
		make.height.mas_equalTo(50);
	}];
}
@end
